package com.dwxt.cdms.dao;

import com.dwxt.cdms.entity.LbWatchLoc;
import com.dwxt.cdms.entity.LbWatchLocExample;
import com.dwxt.cdms.entity.oufu.OuFuLocData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LbWatchLocMapper {
    int countByExample(LbWatchLocExample example);

    int deleteByExample(LbWatchLocExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LbWatchLoc record);

    int insertSelective(LbWatchLoc record);

    List<LbWatchLoc> selectByExample(LbWatchLocExample example);

    LbWatchLoc selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") LbWatchLoc record, @Param("example") LbWatchLocExample example);

    int updateByExample(@Param("record") LbWatchLoc record, @Param("example") LbWatchLocExample example);

    int updateByPrimaryKeySelective(LbWatchLoc record);

    int updateByPrimaryKey(LbWatchLoc record);

    List<LbWatchLoc> selectGroup(String name, Integer stationId);

    List<LbWatchLoc>  selectPageByCustomerId(Integer customerId);

    List<OuFuLocData> selectLocListByCustomerIdAndTime(Integer customerId, String startTime, String endTime);

    LbWatchLoc selectLastOneByCustomerId(Integer customerId);
}